﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="profile.aspx.vb" Inherits="soccer.profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .auto-style1 {
            font-size: medium;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <p class="auto-style1">
        Profile information for our users</p>
    <p class="auto-style1">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ProfileDataSource">
            <Columns>
                <asp:BoundField DataField="firstName" HeaderText="First Name" SortExpression="firstName" />
                <asp:BoundField DataField="lastName" HeaderText="SurName" SortExpression="lastName" />
                <asp:BoundField DataField="phoneNbr" HeaderText="Phone Nbr" SortExpression="phoneNbr" />
                <asp:BoundField DataField="supportsTeam" HeaderText="Supports Team - ?" SortExpression="supportsTeam" />
                <asp:BoundField DataField="dateModified" HeaderText="Date Last Modified" SortExpression="dateModified" />
                <asp:ImageField DataImageUrlField="uPortrait" DataImageUrlFormatString="{0}" HeaderText="Portrait">
                    <ControlStyle CssClass="fixtureimage" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="ProfileDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SoccerConnectionString %>" ProviderName="<%$ ConnectionStrings:SoccerConnectionString.ProviderName %>" SelectCommand="SELECT [firstName], [lastName], [phoneNbr], [supportsTeam], [uPortrait], [dateModified] FROM [SoccerProfile] WHERE ([uName] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="uName" QueryStringField="uName" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p class="auto-style1">
        <asp:Button ID="bn_EditProfile" runat="server" PostBackUrl="~/editProfile.aspx" Text="Edit Profile" />
    </p>
</asp:Content>
